package com.kemang.wordgame;

public class Test {
    public static void main(String[] args) {
        Role r1=new Role("关羽",100);
        Role r2=new Role("吕布",100);
        while (true){
            r1.attack(r2);
            r2.attack(r1);
            if(r1.getBlood()==0){
                System.out.println("关羽败北");
                break;
            }
            if(r2.getBlood()==0){
                System.out.println("吕布输了");
                break;
            }
        }
        System.out.printf("%s","游戏结束");
    }
}
